package com.ecommerce.product;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * 商品服务启动类
 * 
 * @author ecommerce
 * @since 1.0.0
 */
@SpringBootApplication
@EnableJpaRepositories(basePackages = {"com.ecommerce.product.repository"})
@EntityScan(basePackages = {"com.ecommerce.product.entity", "com.ecommerce.entity"})
@EnableJpaAuditing
public class EcommerceProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(EcommerceProductApplication.class, args);
    }
}